package com.zq.it.pojo;

/**
 * Chapter entity. @author MyEclipse Persistence Tools
 */

public class Chapter implements java.io.Serializable {

	// Fields

	private Integer chapterId;
	private Course course;
	private String chapterName;
	// private Set questiondbs = new HashSet(0);

	// Constructors

	// public Set getQuestiondbs(){
	// return questiondbs;
	// }
	// public void setQuestiondbs(Set questiondbs) {
	// this.questiondbs = questiondbs;
	// }
	/** default constructor */
	public Chapter() {
	}
	public Chapter(Integer chapterId) {
		this.chapterId = chapterId;
	}

	public Chapter(Integer chapterId, String chapterName, Integer courseId,
			String courseName) {
		this.chapterId = chapterId;
		this.chapterName = chapterName;
		this.course = new Course(courseId, courseName);

	}
	/** minimal constructor */
	public Chapter(Course course, String chapterName) {
		this.course = course;
		this.chapterName = chapterName;
	}

	// Property accessors

	public Integer getChapterId() {
		return this.chapterId;
	}

	public void setChapterId(Integer chapterId) {
		this.chapterId = chapterId;
	}

	public Course getCourse() {
		return this.course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public String getChapterName() {
		return this.chapterName;
	}

	public void setChapterName(String chapterName) {
		this.chapterName = chapterName;
	}

}